﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020009D9 RID: 2521
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class KHCOKINAOFI : IMessage<KHCOKINAOFI>, IMessage, IEquatable<KHCOKINAOFI>, IDeepCloneable<KHCOKINAOFI>, IBufferMessage
	{
		// Token: 0x17001FE5 RID: 8165
		// (get) Token: 0x0600710C RID: 28940 RVA: 0x0012E869 File Offset: 0x0012CA69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<KHCOKINAOFI> Parser
		{
			get
			{
				return KHCOKINAOFI._parser;
			}
		}

		// Token: 0x17001FE6 RID: 8166
		// (get) Token: 0x0600710D RID: 28941 RVA: 0x0012E870 File Offset: 0x0012CA70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return KHCOKINAOFIReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001FE7 RID: 8167
		// (get) Token: 0x0600710E RID: 28942 RVA: 0x0012E882 File Offset: 0x0012CA82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return KHCOKINAOFI.Descriptor;
			}
		}

		// Token: 0x0600710F RID: 28943 RVA: 0x0012E889 File Offset: 0x0012CA89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KHCOKINAOFI()
		{
		}

		// Token: 0x06007110 RID: 28944 RVA: 0x0012E89C File Offset: 0x0012CA9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KHCOKINAOFI(KHCOKINAOFI other) : this()
		{
			this.eventId_ = other.eventId_;
			this.jOLOKJLDABC_ = other.jOLOKJLDABC_.Clone();
			this.optionId_ = other.optionId_;
			this.cMGGJGKHEOB_ = other.cMGGJGKHEOB_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007111 RID: 28945 RVA: 0x0012E8F5 File Offset: 0x0012CAF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KHCOKINAOFI Clone()
		{
			return new KHCOKINAOFI(this);
		}

		// Token: 0x17001FE8 RID: 8168
		// (get) Token: 0x06007112 RID: 28946 RVA: 0x0012E8FD File Offset: 0x0012CAFD
		// (set) Token: 0x06007113 RID: 28947 RVA: 0x0012E905 File Offset: 0x0012CB05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x17001FE9 RID: 8169
		// (get) Token: 0x06007114 RID: 28948 RVA: 0x0012E90E File Offset: 0x0012CB0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> JOLOKJLDABC
		{
			get
			{
				return this.jOLOKJLDABC_;
			}
		}

		// Token: 0x17001FEA RID: 8170
		// (get) Token: 0x06007115 RID: 28949 RVA: 0x0012E916 File Offset: 0x0012CB16
		// (set) Token: 0x06007116 RID: 28950 RVA: 0x0012E91E File Offset: 0x0012CB1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionId
		{
			get
			{
				return this.optionId_;
			}
			set
			{
				this.optionId_ = value;
			}
		}

		// Token: 0x17001FEB RID: 8171
		// (get) Token: 0x06007117 RID: 28951 RVA: 0x0012E927 File Offset: 0x0012CB27
		// (set) Token: 0x06007118 RID: 28952 RVA: 0x0012E92F File Offset: 0x0012CB2F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CMGGJGKHEOB
		{
			get
			{
				return this.cMGGJGKHEOB_;
			}
			set
			{
				this.cMGGJGKHEOB_ = value;
			}
		}

		// Token: 0x06007119 RID: 28953 RVA: 0x0012E938 File Offset: 0x0012CB38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as KHCOKINAOFI);
		}

		// Token: 0x0600711A RID: 28954 RVA: 0x0012E948 File Offset: 0x0012CB48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(KHCOKINAOFI other)
		{
			return other != null && (other == this || (this.EventId == other.EventId && this.jOLOKJLDABC_.Equals(other.jOLOKJLDABC_) && this.OptionId == other.OptionId && this.CMGGJGKHEOB == other.CMGGJGKHEOB && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600711B RID: 28955 RVA: 0x0012E9B8 File Offset: 0x0012CBB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			num ^= this.jOLOKJLDABC_.GetHashCode();
			if (this.OptionId != 0U)
			{
				num ^= this.OptionId.GetHashCode();
			}
			if (this.CMGGJGKHEOB != 0U)
			{
				num ^= this.CMGGJGKHEOB.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600711C RID: 28956 RVA: 0x0012EA37 File Offset: 0x0012CC37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600711D RID: 28957 RVA: 0x0012EA3F File Offset: 0x0012CC3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600711E RID: 28958 RVA: 0x0012EA48 File Offset: 0x0012CC48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.OptionId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.OptionId);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.EventId);
			}
			this.jOLOKJLDABC_.WriteTo(ref output, KHCOKINAOFI._repeated_jOLOKJLDABC_codec);
			if (this.CMGGJGKHEOB != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.CMGGJGKHEOB);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600711F RID: 28959 RVA: 0x0012EAD0 File Offset: 0x0012CCD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			num += this.jOLOKJLDABC_.CalculateSize(KHCOKINAOFI._repeated_jOLOKJLDABC_codec);
			if (this.OptionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionId);
			}
			if (this.CMGGJGKHEOB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CMGGJGKHEOB);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007120 RID: 28960 RVA: 0x0012EB54 File Offset: 0x0012CD54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(KHCOKINAOFI other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			this.jOLOKJLDABC_.Add(other.jOLOKJLDABC_);
			if (other.OptionId != 0U)
			{
				this.OptionId = other.OptionId;
			}
			if (other.CMGGJGKHEOB != 0U)
			{
				this.CMGGJGKHEOB = other.CMGGJGKHEOB;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007121 RID: 28961 RVA: 0x0012EBC9 File Offset: 0x0012CDC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007122 RID: 28962 RVA: 0x0012EBD4 File Offset: 0x0012CDD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 16U)
				{
					if (num == 8U)
					{
						this.OptionId = input.ReadUInt32();
						continue;
					}
					if (num == 16U)
					{
						this.EventId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 48U || num == 50U)
					{
						this.jOLOKJLDABC_.AddEntriesFrom(ref input, KHCOKINAOFI._repeated_jOLOKJLDABC_codec);
						continue;
					}
					if (num == 56U)
					{
						this.CMGGJGKHEOB = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002B1B RID: 11035
		private static readonly MessageParser<KHCOKINAOFI> _parser = new MessageParser<KHCOKINAOFI>(() => new KHCOKINAOFI());

		// Token: 0x04002B1C RID: 11036
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002B1D RID: 11037
		public const int EventIdFieldNumber = 2;

		// Token: 0x04002B1E RID: 11038
		private uint eventId_;

		// Token: 0x04002B1F RID: 11039
		public const int JOLOKJLDABCFieldNumber = 6;

		// Token: 0x04002B20 RID: 11040
		private static readonly FieldCodec<uint> _repeated_jOLOKJLDABC_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x04002B21 RID: 11041
		private readonly RepeatedField<uint> jOLOKJLDABC_ = new RepeatedField<uint>();

		// Token: 0x04002B22 RID: 11042
		public const int OptionIdFieldNumber = 1;

		// Token: 0x04002B23 RID: 11043
		private uint optionId_;

		// Token: 0x04002B24 RID: 11044
		public const int CMGGJGKHEOBFieldNumber = 7;

		// Token: 0x04002B25 RID: 11045
		private uint cMGGJGKHEOB_;
	}
}
